import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入echarts
import  * as echarts from 'echarts'
Vue.prototype.$echarts=echarts

// 引入element-ui框架
import ElenemtUI from 'element-ui'
// 引入样式
import 'element-ui/lib/theme-chalk/index.css'
// 引入全局组件的模块
import  elCommon from './common'
for(let i in elCommon){
  // 执行全局注册
  Vue.component(i,elCommon[i])
}
// 调用
Vue.use(ElenemtUI)



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
